package com.ocom.company.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ocom.common.entity.master.EntityWechatPerInfo;
import com.ocom.common.request.wx.UnBindRequest;
import com.ocom.common.vo.company.GzhPerInfoVo;

import java.util.List;

public interface WechatPerInfoService extends IService<EntityWechatPerInfo> {
    /**
     * 获取企业ids
     * @return
     */
    List<Long> getCompanyIdsByOpenid(String openid);


    EntityWechatPerInfo saveWxUser(EntityWechatPerInfo entityWechatPerInfo);

    EntityWechatPerInfo getWxUserByPid(Long companyId,Long pId);
    //查找appid、com_id、p_id匹配的记录
    public EntityWechatPerInfo getWechatPerInfo(Long companyId, Long userId, String appid);


    //根据传参条件查询表 wechat_per_info 得到集合 list1 ；
    public List<EntityWechatPerInfo> getWechatPerInfo(String openid);

    public List<GzhPerInfoVo> getWechatPerList(String openid,String appid);


    boolean delWxUser(Long companyId, UnBindRequest unBindRequest);
}
